package com.augurit.smartform.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name = "SM_PAGE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SmPage {
	private Long id;
	private String name;
	private String cnName;
	private String sourceXml;
	private String sourceHtml;
	private String sourceFtl;
	private String clientJavascript;
	private String serverJavascript;
	private String sourceCss;
	private String sourceName;
	private String sourcePath;
	private String jspName;
	private String jspPath;
	private String jspContent;
	private String pageCode;
	private Long templateId;
	private Long pageDirId;
	private String pageId;
	
	public String getPageId() {
		return pageId;
	}
	public void setPageId(String pageId) {
		this.pageId = pageId;
	}
	public Long getTemplateId() {
		return templateId;
	}
	public void setTemplateId(Long templateId) {
		this.templateId = templateId;
	}
	public String getPageCode() {
		return pageCode;
	}
	public void setPageCode(String pageCode) {
		this.pageCode = pageCode;
	}
	public String getSourceFtl() {
		return sourceFtl;
	}
	public void setSourceFtl(String sourceFtl) {
		this.sourceFtl = sourceFtl;
	}
	public String getClientJavascript() {
		return clientJavascript;
	}
	public void setClientJavascript(String clientJavascript) {
		this.clientJavascript = clientJavascript;
	}
	public String getServerJavascript() {
		return serverJavascript;
	}
	public void setServerJavascript(String serverJavascript) {
		this.serverJavascript = serverJavascript;
	}
	public String getJspContent() {
		return jspContent;
	}
	public void setJspContent(String jspContent) {
		this.jspContent = jspContent;
	}
	@Id
    @SequenceGenerator(name="SEQ_SM_PAGE", sequenceName="SEQ_SM_PAGE", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_SM_PAGE")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCnName() {
		return cnName;
	}
	public void setCnName(String cnName) {
		this.cnName = cnName;
	}
	public String getSourceXml() {
		return sourceXml;
	}
	public void setSourceXml(String sourceXml) {
		this.sourceXml = sourceXml;
	}
	public String getSourceHtml() {
		return sourceHtml;
	}
	public void setSourceHtml(String sourceHtml) {
		this.sourceHtml = sourceHtml;
	}
	public String getSourceCss() {
		return sourceCss;
	}
	public void setSourceCss(String sourceCss) {
		this.sourceCss = sourceCss;
	}
	public String getSourceName() {
		return sourceName;
	}
	public void setSourceName(String sourceName) {
		this.sourceName = sourceName;
	}
	public String getSourcePath() {
		return sourcePath;
	}
	public void setSourcePath(String sourcePath) {
		this.sourcePath = sourcePath;
	}
	public String getJspName() {
		return jspName;
	}
	public void setJspName(String jspName) {
		this.jspName = jspName;
	}
	public String getJspPath() {
		return jspPath;
	}
	public void setJspPath(String jspPath) {
		this.jspPath = jspPath;
	}
	public Long getPageDirId() {
		return pageDirId;
	}
	public void setPageDirId(Long pageDirId) {
		this.pageDirId = pageDirId;
	}
}
